package com.gxy.learn.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxy.learn.mybatisplus.entity.SysUserRole;
import com.gxy.learn.mybatisplus.vo.SysUserRoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: Gao xueyong
 * Create at: 2021/12/15 下午9:49
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
    /**
     * 根据userId获取用户角色
     * @param userId
     * @return
     */
    List<SysUserRoleVO> getSysRoleListByUserId(@Param("userId") String userId);
}
